package com.amos.generate.service.impl;

import com.amos.generate.bean.ServiceField;
import com.amos.generate.service.AbstractHandler;
import com.amos.generate.type.TemplateTypeEnum;

/**
 * Copyright © 2018 嘉源锐信. All rights reserved.
 *
 * @Project: mu-exam
 * @ClassName: ServiceHandler
 * @Package: com.amos.generate.service.impl
 * @author: zhuqb
 * @Description:
 * @date: 2020/3/11 0011 下午 17:54
 * @Version: V1.0
 */
public class ServiceHandler extends AbstractHandler<ServiceField> {
    private String path;
    private String rootPackageName;
    private String tableName;
    private boolean isPage;
    public ServiceHandler(String path, String rootPackageName, String tableName, boolean isPage) {
        super(path, rootPackageName, tableName, TemplateTypeEnum.SERVICE);
        this.path = path;
        this.rootPackageName = rootPackageName;
        this.tableName = tableName;
        this.isPage = isPage;
    }

    @Override
    public ServiceField field() {
        ServiceField serviceField = new ServiceField();
        serviceField.setPage(isPage);
        return serviceField;
    }
}
